package com.health.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 洛璃依
 * @since 2022-12-07 01:57:02
 */
@Getter
@Setter
@TableName("drug")
public class Drug implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "drug_id", type = IdType.AUTO)
    private Integer drugId;

    /**
     * 药品名称
     */
    @TableField("drug_name")
    private String drugName;

    /**
     * 药品种类
     */
    @TableField("drug_type")
    private String drugType;

    /**
     * 药品数量
     */
    @TableField("drug_quantity")
    private Long drugQuantity;

    /**
     * 药品单价
     */
    @TableField("drug_price")
    private BigDecimal drugPrice;

    /**
     * 入库时间
     */
    @TableField("storageTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date storageTime;

    /**
     * 过期时间
     */
    @TableField("ExpirationTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expirationTime;

    /**
     * 药品功能描述
     */
    @TableField("drug_description")
    private String drugDescription;


}
